home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!lorelei.demon.co.uk
- From: John Croudy <john@lorelei.demon.co.uk>
- Newsgroups: comp.lang.c++
- Subject: Re: " A silly beginner's question
- Date: Mon, 8 Apr 96 16:53:18 GMT
- Organization: home
- Message-ID: <9604081653.AA001ov@lorelei.demon.co.uk>
- References: <4k9v0e$p57@nova.umuc.edu>
- X-NNTP-Posting-Host: lorelei.demon.co.uk
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
- X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!lorelei.demon.co.uk
-
- On 7 Apr 1996 22:51:58 -0400, Steve Russell wrote:
-
- > Anyway what is a " core dump"? What causes it?
-
- "Core Dump" is an old expression meaning "Listing of memory contents".
- It comes from the time when computer memory was made of an array of
- thousands of magnetic rings held on a grid of wires. This was called
- core. So, you get a core dump when something goes wrong in a program,
- and the operating system lists the program memory so you can examine it
- and hopefully find out what went wrong. I find it easier to examine my
- source code, however :)
-
- > What is a "segment fault"? I've seen messages like " segment fault, core
- > dumped". I stopped it by putting in exit commands before they
- > could happen, but what do these messages mean?
-
- I'm not sure exactly, but it basically means your program is doing
- something nasty that it shouldn't, and causing a problem in the
- computer, which forces it to terminate the program abnormally. It's
- commonly called a "crash". You have a crash bug, and putting the exit
- commands in stops the program before it reaches the erroneous code.
-
- > it to let me know when it executes. I never saw it, does this
- > mean that it doesn't execute or just that it executes after my
- > program is completely over ( hence no message).
-
- I guess it means it doesn't execute. It can't execute after your
- program is finished (can it, anyone???) because it's part of the
- program.
-
- > Is there a way to manually get the destructor to execute?
-
- I'm not sure, and anyway I don't think it's a good idea. If you created
- the object with "new" you have to use "delete". If you created the
- object on the stack, it should destruct when it goes out of scope which
- generally means at the next closing brace }
-
- John
- xxxx
-